﻿#region Copyright(C) 2018 FI Ltd. All rights reserved.
// ==================================================================================================
// Copyright(C) 2018 FI Ltd. All rights reserved.
//
// SYSTEM NAME	    : FI.Net Application Framework
// COMPONENT ID	    : FI.Core
// COMPONENT DESC   : FI.Net Core Foundation
//
// CREATED DATE/BY  : 18 Aug 2018 / Tian Mi
//
// REVISION HISTORY :	
// DATE/BY			SR#/CS/PM#/OTHERS		DESCRIPTION OF CHANGE
// ==================================================================================================
#endregion

using System;

namespace FI.Core
{
    /// <summary>
    /// The factory to create message resolver.
    /// </summary>
    public interface IMessageResolverFactory
    {
        /// <summary>
        /// Gets the message resolver.
        /// </summary>
        /// <param name="messageId">The message id.</param>
        /// <param name="messageCategory">The message category.</param>
        /// <param name="resourceName">Name of the resource.</param>
        /// <param name="resourceType">Type of the resource.</param>
        /// <param name="fallbackValue">The fallback value.</param>
        /// <returns>The message resolver.</returns>
        IMessageResolver GetMessageResolver(string messageId, string messageCategory, string resourceName, string resourceType, string fallbackValue);

        /// <summary>
        /// Gets the message resolver.
        /// </summary>
        /// <param name="messageId">The message id.</param>
        /// <param name="messageCategory">The message category.</param>
        /// <param name="resourceName">Name of the resource.</param>
        /// <param name="resourceType">Type of the resource.</param>
        /// <param name="fallbackValue">The fallback value.</param>
        /// <returns>The message resolver.</returns>
        IMessageResolver GetMessageResolver(string messageId, string messageCategory, string resourceName, Type resourceType, string fallbackValue);
    }
}
